/*
 * ctime.c
 */

#include <time.h>

#define ASCBUF          "Day Mon dd hh:mm:ss yyyy\n\0"

char * ctime_r(
    const time_t * timer,
    char *         asctimeBuf,
    size_t *       buflen
)
{
    asctime_r (localtime (timer), asctimeBuf, buflen);

    return (asctimeBuf);
}

char * ctime(const time_t *timer)
{
    size_t len = sizeof (ASCBUF);
    static char asctimeBuf [sizeof (ASCBUF)];

    return (ctime_r (timer, asctimeBuf, &len));
}
